//
// Created by lenovo on 2021/9/10.
//
#include <cstdint>

#ifndef JVMTI_MEMORYFILE_H
#define JVMTI_MEMORYFILE_H

class MemoryFile{
public:
    MemoryFile(const char *path);
    ~MemoryFile();
    const char *m_path;
    int m_fd;
    int32_t m_size;
    int8_t *m_ptr;
    int m_actualSize;
    void write(char *data, int dataLen);
    void resize(int32_t needSize);
};

#endif //JVMTI_MEMORYFILE_H
